About Color in QuickDraw GX
In QuickDraw GX, color information about a shape is kept in the ink object associated with the shape object. A shape's ink object describes both the color of the shape and the transfer mode with which the shape is drawn. Ink objects are described in the chapter "Ink Objects" in this book; colors are described in this chapter.QuickDraw GX has a powerful, device-independent method for representing color
in many different formats. Conversion among the formats is simple and direct, and in many cases automatic. QuickDraw GX also provides automatic manipulation of device-specific colors so that colors match consistently when scanned from or drawn to many different imaging devices.This section describes how color is represented and how you can manipulate color information. It presents the information in this order:
- Colors are numerical values that make sense only in terms of specific color spaces. Color spaces are described first, under "Color Spaces" (next section).
- The mathematical values used by each color space are combined with other information to make a color structure. How color values relate to the color structure
is described second, under "Color-Component Values, Color Values, and Colors" beginning on page 4-25.- Colors in a given color space or produced with a given input or display device commonly must be converted to another color space or matched to the color capabilities of another device. How QuickDraw GX accomplishes that task is described third, under "Color Conversion and Color Matching" beginning on page 4-26.
Subtopics
- Color Spaces
- Color-Component Values, Color Values, and Colors
- Color Conversion and Color Matching